package com.qst.medical.mapper;

import com.qst.medical.entity.AccountEntity;
import com.qst.medical.model.AccountModel;
import org.springframework.stereotype.Component;

@Component
public interface AccountMapper {
    /*用户登录security*/
    AccountModel securityLogin(String uname);
    /*校验手机号存在*/
    int checkPhone(String phone);

    int resetPwd(Long id, String pwd);

    int regist(AccountEntity entity);

    int checkID(Long id);

    /*更新账户信息*/
    int updateAccount(AccountEntity entity);
    int updateID(Long newid ,Long oldid);
}
